home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global clock, xsmall, small, medium, large, counter, EnterCounter, flag, product, projectName, viewedCW, viewedFA, projectNum, seenComic, seenPicture, seenPaper, seenCard, seenBanner, seenProject1, seenProject2, seenProject3
- set clock to 60
- set xsmall to 2 * clock
- set small to 4 * clock
- set medium to 7 * clock
- set large to 9 * clock
- if the machineType = 256 then
- set xsmall to 3 * clock
- set small to 6 * clock
- set medium to 9 * clock
- set large to 12 * clock
- end if
- set projectNum to 0
- set seenSticker to 0
- set seenPicture to 0
- set seenPaper to 0
- set seenCard to 0
- set seenBanner to 0
- set seenProject1 to 0
- set seenProject2 to 0
- set seenProject3 to 0
- doTimeoutReset()
- when timeOut then doContinue
- set the textFont of field "talk" to "Palatino"
- set the textStyle of field "talk" to "bold"
- set the textSize of field "talk" to 14
- set the textFont of field "talkSmall" to "Palatino"
- set the textStyle of field "talkSmall" to "bold"
- set the textSize of field "talkSmall" to 14
- set the keyDownScript to "doKeyDown"
- set EnterCounter to 0
- end
-
- on doPause
- global EnterCounter
- doTimeoutReset()
- set the timeoutLapsed to 0
- set EnterCounter to 1
- pause()
- end
-
- on doWait a
- global EnterCounter
- set EnterCounter to 1
- delay(a)
- end
-
- on doContinue
- continue()
- end
-
- on doMenu
- set the timeoutLength to 60 * 60
- pause()
- end
-
- on doTimeoutReset
- set the timeoutLength to 10 * 60
- end
-
- on doTimeoutLong
- set the timeoutLength to 45 * 60
- end
-
- on doProjects
- global product, projectNum, seenComic, seenSticker, seenPicture, seenPaper, seenCard, seenBanner, seenProject1, seenProject2, seenProject3
- set projectNum to seenProject1 + seenProject2 + seenProject3
- if projectNum = 0 then
- go("Project1")
- end if
- if projectNum = 1 then
- go("Project2")
- end if
- if projectNum = 2 then
- go("Project3")
- end if
- if projectNum = 3 then
- go("Project4")
- end if
- end
-
- on doSound a
- sound playFile 1, a & ".AIF"
- end
-
- on doKeyDown
- global EnterCounter
- if the key = RETURN then
- if EnterCounter = 1 then
- set EnterCounter to 0
- go(the frame + 1)
- end if
- end if
- if the key = "p" then
- go("Projects")
- end if
- if the commandDown and ((the key = "q") or (the key = ".") or (the key = "w")) and (the exitLock = 1) then
- go("Goodbye", "MSKids")
- end if
- end
-
- on doClick
- doSound("CLICK")
- doContinue()
- end
-
- on doQuit
- play frame "QuitRoutine"
- end
-
- on playTheme
- if soundBusy(1) then
- else
- doSound("THEME")
- end if
- end
-
- on donothing
- nothing()
- end
-
- on grabtext
- global counter
- put line counter of field "sourcetext" into field "talk"
- set counter to counter + 1
- end
-
- on grabtextSmall
- global counter
- put line counter of field "sourcetext" into field "talkSmall"
- set counter to counter + 1
- end
-
- on addtext
- global counter
- set temp to the text of field "talk"
- put temp & RETURN & RETURN & line counter of field "sourcetext" into field "talk"
- set counter to counter + 1
- end
-
- on addtextSmall
- global counter
- set temp to the text of field "talkSmall"
- put temp & RETURN & line counter of field "sourcetext" into field "talkSmall"
- set counter to counter + 1
- end
-